package com.daocao.hua.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by xsooy-pc on 2017/7/13.
 */

public class NewBeginApplyStepModel implements Parcelable {

    public String step_id;
    public String step_title;
    public String step_description;
    public String necessary;
    public String banner;
    public boolean isVertify = false;
    public String background;
    public String alert;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.step_id);
        dest.writeString(this.step_title);
        dest.writeString(this.step_description);
        dest.writeString(this.necessary);
        dest.writeString(this.banner);
        dest.writeByte(this.isVertify ? (byte) 1 : (byte) 0);
        dest.writeString(this.background);
        dest.writeString(this.alert);
    }

    public NewBeginApplyStepModel() {
    }

    protected NewBeginApplyStepModel(Parcel in) {
        this.step_id = in.readString();
        this.step_title = in.readString();
        this.step_description = in.readString();
        this.necessary = in.readString();
        this.banner = in.readString();
        this.isVertify = in.readByte() != 0;
        this.background = in.readString();
        this.alert = in.readString();
    }

    public static final Creator<NewBeginApplyStepModel> CREATOR = new Creator<NewBeginApplyStepModel>() {
        @Override
        public NewBeginApplyStepModel createFromParcel(Parcel source) {
            return new NewBeginApplyStepModel(source);
        }

        @Override
        public NewBeginApplyStepModel[] newArray(int size) {
            return new NewBeginApplyStepModel[size];
        }
    };
}
